package com.ccb.sc.common.modules.goods.convert;

import com.ccb.sc.common.modules.goods.entity.Goods;
import com.ccb.sc.common.modules.goods.entity.GoodsSpecs;
import com.ccb.sc.common.modules.goods.vo.GoodsDetailVo;
import com.ccb.sc.common.modules.goods.vo.GoodsSpecsVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author ken
 * @version 1.0
 * @date 2020-09-20
 */
@Mapper
public interface GoodsConvert {

    GoodsConvert INSTANCE = Mappers.getMapper(GoodsConvert.class);

    GoodsDetailVo entity2DetailVo(Goods entity);

    List<GoodsSpecsVo> goodsSpec2VoBatch(List<GoodsSpecs> specs);

}
